<?php

class TestController extends Zend_Controller_Action {

	public function init() {
		$this->view->baseUrl = $this->_request->getBaseUrl();
	}
	
	public function indexAction() {
		/*
		$this->view->title = "Register";
        
        // Params from the form
        $param = $this->getRequest()->getParams();
        $login = $param["Login"];
        $password1 = $param["Password"];
        $password2 = $param["Password2"];
        
        */
        
        $movDB = new Application_Model_Movie;
        $actDB = new Application_Model_Actor;
        $comDB = new Application_Model_Comment;
        $cusDB = new Application_Model_Customer;
        $mhaDB = new Application_Model_MoviehasActor;
        $rooDB = new Application_Model_Room;
        $shaDB = new Application_Model_ShowingAt;
        $timDB = new Application_Model_Time;
        $watDB = new Application_Model_Watches;
        
        // ADD Functions
        //$movDB->addMovie("Batman Begins","PG-13", "2005-01-01", "NULL", "8.5", "140", "Bruce Wayne loses his philanthropic parents to a senseless crime, and years later becomes the Batman to save the crime-ridden Gotham City on the verge of destruction by an ancient order.");
        //$actDB->addActor("Liam Neeson", "07-06-1952", "NULL");
        //$comDB->addComment("This movie is AMAZING!!!!", "100");
        //$mhaDB-> addMhasA(2,3);
        //$rooDB->addRoom(3);
        //$shaDB->addShowAt(1, 2, 3);
        //$timDB->addTime(1200, 1300, 20110812);
        //$watDB->addWatch( 2, 2, 2);
        
        //UPDATE Functions
        //$actDB->updateActor(4, "John Smith", "20110908", Null);
        //$cusDB->updateCustomer(4, "Johnny Smith", 31231, NULL);
        //$movDB->updateMovie(9, "BB", "BBHIGH", NULL, "BBPOST", "BBRANK", 100, "DESCRIPTIONNNNNN!!!!!!");
        
        //DELETE Functions
        //$actDB->deleteActor(4);
        //$comDB->deleteComment(4);
        //$cusDB->deleteCustomer(4);
        //$movDB->deleteMovie(9);
	}
}
